package com.star.dao;

import com.star.po.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;


/**
 * create by: GYF
 * description:评论
 * create time: 14:28 2020/8/2
 * * @Param: null
 * @return 
 */
public interface CommentRepository extends JpaRepository<Comment,Long>{


    List<Comment> findByBlogIdAndParentCommentNull(Long blogId, Sort sort);

}
